<%--
  Created by IntelliJ IDEA.
  User: ykj
  Date: 16/2/29
  Time: 下午11:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/topbar.css">

<div class="topbar">
    <div class="topbar-content clearfix">
        <div class="topbar-left">
            <span class="glyphicon glyphicon-home" style="color: #a5a5a5;"></span>
            <a href="${pageContext.request.contextPath}/index">华软理财主页</a>
        </div>
        <div class="topbar-right">
            <c:choose>
                <c:when test="${isLogin==true}">
                    <div class="topbar-menu-item"><a href="${pageContext.request.contextPath}/user/info">${user.name}</a></div>
                    <div class="topbar-menu-item"><a href="${pageContext.request.contextPath}/user/logout">退出</a></div>
                </c:when>
                <c:otherwise>
                    <div class="topbar-menu-item"><a href="${pageContext.request.contextPath}/user/login">请登录</a></div>
                    <div class="topbar-menu-item"><a href="${pageContext.request.contextPath}/user/register">免费注册</a></div>
                </c:otherwise>
            </c:choose>
            <div class="topbar-menu-item"><a href="${pageContext.request.contextPath}/purchases/detail">我的交易单</a></div>
        </div>
    </div>
</div>